﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 用户密码变更传输对象
    /// </summary>
    public class UserPasswordChangeDto
    {
        /// <summary>
        /// 旧密码(MD5密文)
        /// </summary>
        [Required(ErrorMessage = "旧密码必填")]
        [DataValidation(DataValidation.ValidationTypes.Md5, ErrorMessage = "请输入正确的密码格式", AllowNullValue = true, AllowEmptyStrings = true)]
        public string OldPassword { get; set; }
        /// <summary>
        /// 新密码(MD5密文)
        /// </summary>
        [Required(ErrorMessage = "新密码必填")]
        [DataValidation(DataValidation.ValidationTypes.Md5, ErrorMessage = "请输入正确的密码格式", AllowNullValue = true, AllowEmptyStrings = true)]
        public string NewPassword { get; set; }
    }
}
